require 'View/UIBase/UIBase'

UITeamSkillDetails = UIBase.New(PanelNames.UITeamSkillDetails);

function UITeamSkillDetails.Init(teamSkillId,func)
    UITeamSkillDetails.skillData=logicMgr.InvasionManager.GetTeamSkillData(teamSkillId)
    UIBase.Init(UITeamSkillDetails, func);
end

--定义控件
function UITeamSkillDetails:OnCreate()
    self.descText=self:GetChild("DesText")
    self.nameText=self:GetChild("SkillName")
    self.closeBtn=self:GetChild("BgBtn")
    self:addEvent();
end
function UITeamSkillDetails:OnEnable()
    self.descText.text=getLanguage(self.skillData.f_Describe)
    self.nameText.text=getLanguage(self.skillData.f_Name)
end

function UITeamSkillDetails:OnDisable()

end

function UITeamSkillDetails:OnDestroy()

end

-------------------------------function--------------------------------------
function UITeamSkillDetails:OnClickClose()
    self:OnBack()
end
function UITeamSkillDetails:addEvent()
    self:RegisterOnClick(self.closeBtn,self.OnClickClose)
end
function UITeamSkillDetails:Refresh()

end
function UITeamSkillDetails:RefreshUI()

end

return UITeamSkillDetails;